
<form class="login-form  Absolute-Center mt11" #loginForm = "ngForm">
    {{diagnostic}}
      <div class="form-group">
        <label>用户名</label>
        <mat-form-field class="login-full-width">
          <input matInput
                 required
                 [(ngModel)]="user.name" name="name"
          >
        </mat-form-field>
      </div>

      <div class="form-group">
        <label>密码</label>
        <mat-form-field class="login-full-width">
          <input #pwd matInput
                 required
                 [(ngModel)]="user.password" name="name"
          >
        </mat-form-field>
      </div>


      <button mat-button color="primary" type="submit" (click)="login()">登录</button>
      <button mat-button color="primary" (click)="regist()">注册</button>
    </form>


